const Base = require('./base.js');
const fs = require('fs');

module.exports = class extends Base {
  async indexAction() {
    try {
      var resulr = fs.readFileSync(think.ROOT_PATH + this.ctx.url)
      this.ctx.body = resulr.toString()
    } catch (e) {
      this.json(e.message)
    }
  }
};